package com.atguigu.gulimall.product.dao;

import com.atguigu.gulimall.product.entity.AttrAttrgroupRelationEntity;
import com.atguigu.gulimall.product.vo.AttrGroupVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 属性&属性分组关联
 * 
 * @author wangliang
 * @email wangliang@gmail.com
 * @date 2023-11-07 21:19:43
 */
@Mapper
public interface AttrAttrgroupRelationDao extends BaseMapper<AttrAttrgroupRelationEntity> {

    AttrAttrgroupRelationEntity queryAttrAttrgroupRelationByAtrrId(@Param("attrId")Long attrId);

    void deleteGroupAttrRelation(@Param("attrGroupVos")List<AttrGroupVo> attrGroupVos);

    void addRelationGroupAttr(@Param("addRelationList") List<AttrGroupVo> addRelationList);
}
